<?php

/**
 * 友情链接
 * File Name：LinksController.php
 * File Encoding：UTF-8
 * File New Time：2014-5-30 9:22:21
 * Author：水平凡
 * Mailbox：admin@abc3210.com
 */
class LinksController extends AdminBase {

    public function actionIndex() {
        //条件数组
        $where = array(
            'order' => 'id desc',
        );
        $this->basePage('LinkModel', $where);
        $this->render();
    }

    public function actionAdd() {
        $this->baseAdd('LinkModel', 'index');
    }

    public function actionEdit() {
        $this->baseEdit('LinkModel', 'index');
    }

    public function actionDelete() {
        $this->baseDelete('LinkModel', 'index');
    }

}
